﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// 战斗结果信息
    /// </summary>
    public class FightResult
    {
        bool fighting = false;
        bool win = false;
        string message = "";
        int exp = 0;
        List<Items> itemList = new List<Items>(4);
        int nextTime;

        /// <summary>
        /// 如果未开始战斗，下次开始战斗需要的时间，单位秒
        /// </summary>
        public int NextTime
        {
            get { return nextTime; }
            set { nextTime = value; }
        }

        /// <summary>
        /// 是否已开始战斗
        /// </summary>
        public bool Fighting
        {
            get { return fighting; }
            set { fighting = value; }
        }

        /// <summary>
        /// 是否战胜
        /// </summary>
        public bool Win
        {
            get { return win; }
            set { win = value; }
        }

        /// <summary>
        /// 战斗信息
        /// </summary>
        public string Message
        {
            get { return message; }
            set { message = value; }
        }

        /// <summary>
        /// 战斗获得经验
        /// </summary>
        public int Exp
        {
            get { return exp; }
            set { exp = value; }
        }

        /// <summary>
        /// 战斗获得物品集合
        /// </summary>
        public List<Items> ItemList
        {
            get { return itemList; }
            set { itemList = value; }
        }

        /// <summary>
        /// 构造一个战斗结果
        /// </summary>
        /// <param name="win">是否胜利</param>
        /// <param name="exp">获得经验值</param>
        public FightResult(bool win, int exp)
        {
            this.win = win;
            this.exp = exp;
        }

        /// <summary>
        /// 构造一个战斗结果
        /// </summary>
        /// <param name="fingthing">是否已开始战斗</param>
        public FightResult(bool fighting)
        {
            this.fighting = fighting;
        }
    }
}
